This paper proposes a solution for the resource constraints of mobile devices.  As an alternative for the thin client approach, a hybrid approach is presented, that is able to adapt dynamically to changes in the context in which the mobile application runs.  By switching dynamically, at runtime, between local and remote execution of components of an application, the quality of experience of the end user is optimized. An ILP model to minimize the impact on end user experience, taking into account different context parameters, such network delay and available processing resources, is presented.  Tests performed with this model have resulted in a simplified ILP model.  The behavior of
this model under changing network conditions is presented.
Finally, the possibilities to incorporate this model into an earlier designed framework are discussed.
